<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Home Page
</asp:Content>


<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">

 
	<script type="text/javascript">
	
    
    	// This code generates a "Raw Searcher" to handle search queries. The Raw Searcher requires
		// you to handle and draw the search results manually.
	
    
    	google.load('search', '1');

		var localSearch;





		function searchComplete() {

       
        localSearch.results.each(function (i) {
    
        alert('');
        })
			
//			localSearch.results[i].streetAddress;
//					c.innerHTML = "<br>" +
//			localSearch.results[i].city + "," +
//			localSearch.results[i].region;

				 
			 
		}

		function onLoad() {

			// Create a LocalSearch instance.
			localSearch = new google.search.LocalSearch();

			// Set the Local Search center point
			localSearch.setCenterPoint("New York, NY");

			// Set searchComplete as the callback function when a search is complete. The
			// localSearch object will have results in it.
			localSearch.setSearchCompleteCallback(this, searchComplete, null);

			// Specify search quer(ies)
			localSearch.execute('coffee New York NY');

			// Include the required Google branding. 
			// Note that getBranding is called on google.search.Search
			//google.search.Search.getBranding('branding');
		}

		// Set a callback to call your code when the page loads
		google.setOnLoadCallback(onLoad);
	</script>
 
	<div id="branding"  style="float: left;"></div><br />
	<div id="content"></div>
  
​


<h2>
		<%= Html.Encode(ViewData["Message"]) %></h2>
	<p> 
	 
	</p>
	<p>
	  
		


	</p>
</asp:Content>
